<template>
	<view class="navbar">
		<view class="bark" @click="Return()"><image src="../../static/icon/return.png" mode=""></image></view>
		<view class="text--center f16 fwb500"><text v-text="title"></text></view>
	</view>
</template>

<script>
export default {
	props: {
		title: {
			type: String
		}
	},
	data() {
		return {};
	},
	methods: {
		Return() {
			uni.navigateBack(1);
		}
	}
};
</script>

<style lang="less">
.navbar {
	line-height: 88rpx;
	height: 88rpx;
	width: 100%;
	position: relative;
	padding-top: 88rpx;
}
.bark {
	display: block;
	position: absolute;
	top: 106rpx;
	left: 30rpx;
	z-index: 1;
	width: 48rpx;
	height: 48rpx;
	image {
		display: block;
		width: 100%;
		height: 100%;
	}
}
.text {
	font-size: 34rpx;
	font-family: PingFangSC, PingFangSC-Medium;
	font-weight: 500;
	text-align: center;
	color: #222223;
}
</style>
